package com.xiaoq.matrix.minipro.entity;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;

import com.xiaoq.MongoEntity;
import com.xiaoq.matrix.minipro.vo.MiniProAuthorizerInfo;

@Entity(value="shop_minipro", noClassnameStored=true)
public class ShopMiniProEntity extends MongoEntity {
	private String merchantId;
	private String shopId;
	private String shopType;
	private String name;
	private String qrcode;
	private String logo;
	private String appId;  //用户号
	private String appSecret;  //用户秘钥
	private String type; // 1表示公众号的版本，2表示小程序相关记录
	private MiniProAuthorizerInfo authorizerInfo;
	private Long authTime;
	private String authStatus;
	private String wechatAcc;
	private String wechatUUID;
	
	private String qrImage; // 小程序Base64存储
	
	
	//@Embedded
	//private List<ShopMiniProVersionEntity> versionList = new ArrayList<ShopMiniProVersionEntity>();
	@Embedded
	private ShopMiniProVersionEntity lastVersion;
	
	private String event;
	
	private Long FailTime;
	
	private String failReason;
	
	

	public String getQrImage() {
		return qrImage;
	}

	public void setQrImage(String qrImage) {
		this.qrImage = qrImage;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getShopType() {
		return shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public MiniProAuthorizerInfo getAuthorizerInfo() {
		return authorizerInfo;
	}

	public void setAuthorizerInfo(MiniProAuthorizerInfo authorizerInfo) {
		this.authorizerInfo = authorizerInfo;
	}

	public Long getAuthTime() {
		return authTime;
	}

	public void setAuthTime(Long authTime) {
		this.authTime = authTime;
	}

	public String getAuthStatus() {
		return authStatus;
	}

	public void setAuthStatus(String authStatus) {
		this.authStatus = authStatus;
	}

	public String getWechatAcc() {
		return wechatAcc;
	}

	public void setWechatAcc(String wechatAcc) {
		this.wechatAcc = wechatAcc;
	}

	public String getWechatUUID() {
		return wechatUUID;
	}

	public void setWechatUUID(String wechatUUID) {
		this.wechatUUID = wechatUUID;
	}

	public ShopMiniProVersionEntity getLastVersion() {
		return lastVersion;
	}

	public void setLastVersion(ShopMiniProVersionEntity lastVersion) {
		this.lastVersion = lastVersion;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public Long getFailTime() {
		return FailTime;
	}

	public void setFailTime(Long failTime) {
		FailTime = failTime;
	}

	public String getFailReason() {
		return failReason;
	}

	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}
	
	
}
